<template>
  <div class="base-container">
    <div class="base-container__top" :style="`height: ${top}px;`">
      <slot name="top"></slot>
    </div>
    <div class="base-container__middle">
      <slot name="middle"></slot>
    </div>
    <div class="base-container__bottom" :style="`height: ${bottom}px;`">
      <slot name="bottom"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'base-container',
  props: {
    top: {
      type: Number,
      required: false,
      default: 36
    },
    bottom: {
      type: Number,
      required: false,
      default: 20
    }
  },
  computed: {
  },
  data () {
    return {
    }
  },
  mounted () {
  },
  methods: {
  }
}
</script>

<style lang="scss">
@import "~@/css/lib/mixin";
@import "~@/css/common/variables";

.base-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: $bg-color-main;
  &__top, &__bottom {
    width: 100%;
    flex-direction: row;
  }
  &__top {
    height: $top-bar-height;
  }
  &__middle {
    width: 100%;
    height: 100%;
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
  }
  &__bottom {
    height: $bottom-bar-height;
  }
}
</style>
